<div class="ibox">
	<div class="ibox-content">
	<form class="form-horizontal" action="${cxt!}/admin/commissionrule/add" id="commissionruleForm">
		<div class="form-group">
			<label for="namebasic" class="col-md-2 control-label">${_res["commission.rule.name"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<input type="text" class="form-control" name="commissionRule.name" placeholder="${_res["commission.rule.name"]}"  required aria-required="true">
			</div>
		</div>
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.type"]}</label>
			<div class="col-md-10">
			      <#dict type="select" class="form-control" id="commissiontype" name="commissionRule.commissiontype"  dictCode="COMMISSION_TYPE" empty="false" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label for="passwordbasic" class="col-md-2 control-label">${_res["commission.rule.status"]}</label>
			<div class="col-md-10">
				<#dict type="select" class="form-control" name="commissionRule.status"  dictCode="COMMON_STATUS" empty="false" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label  class="col-md-2 control-label">${_res["commission.rule.feetype"]}</label>
			<div class="col-md-10">
			<#dict type="select" class="form-control" name="commissionRule.feetype"  dictCode="COMMISSION_FEE_TYPE" empty="false" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label  class="col-md-2 control-label">${_res["commission.rule.currency"]}</label>
			<div class="col-md-10">
			<#dict type="select" class="form-control" name="commissionRule.currency"  dictCode="CURRENCY" empty="false" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.startvalue"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<input type="text" class="form-control" name="commissionRule.startvalue"  required aria-required="true"/>
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.endvalue"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<input type="text" class="form-control" name="commissionRule.endvalue"  required aria-required="true"/>
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label  class="col-md-2 control-label">${_res["commission.rule.rebate"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<input type="text" class="form-control" name="commissionRule.rebate"  required aria-required="true"/>
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.expirydate"]}</label>
			  <div class="col-md-4">
		            <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionRule.startdate"  placeholder="${_res['system.startdate']}" />
		    </div>
		    <div class="col-md-4">
		        <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionRule.endate"  placeholder="${_res['system.enddate']}"  />
		    </div>
		<label class="col-md-2 control-label" style="text-align: left;">${_res["commission.rule.date.memo"]}</label>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.period"]}</label>
			<div class="col-md-4">
				<#dict type="radio" name="commissionRule.period"  dictCode="COMMISSION_RULE_PERIOD" defaultValue="${period!}" />
			</div>
			<label class="col-md-2 control-label" style="text-align: left;">${_res["commission.rule.period.msg"]}</label>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.description"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<textarea name="commissionRule.description" class="form-control" rows="3" cols="9" placeholder="${_res['commission.rule.description']}"   aria-required="true"></textarea>
			</div>
		</div>
 
 	
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<div class="col-md-10 col-md-offset-2">
				<button type="button" class="btn btn-warning"
					onClick="ajaxContent('/admin/commissionrule')">${_res["system.return"]}</button>
				<button type="submit" class="btn btn-primary" >${_res["system.submit"]}</button>
			</div>
		</div>
	</form>
   </div>
 </div>
 <#submit  formId="commissionruleForm"  divId="content" />
 
 
 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModaLabel">
  	<form class="form-horizontal">
  	     <input type="hidden"   name="commissionRule.id" id="commissionRuleId">
		  <div class="modal-dialog" role="document">
		    <div class="modal-content">
		     <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
		        <h4 class="modal-title" id="myModaLabel">${_res["commission.rule.associatedObject"]}</h4>
		      </div>
		     <div class="modal-body">
					<div class="partentDivWrap">
						<div class="content_wrap">
							<div class="zTreeDemoBackground left">
								<ul id="project_tree" class="ztree"></ul>
							</div>
						</div>          
					</div>
		      </div>
		      <div class="modal-footer">
		        <button type="button" class="btn btn-warning" data-dismiss="modal">${_res["system.return"]}</button>
		        <button type="button" class="btn btn-primary" onClick="submitPrivilege();">${_res["system.confirm"]}</button>
		      </div>
		    </div>
		  </div>
	 </form>
</div>
	